import {request} from "../../request";

export function getUniquecodeById(id){
    return request({
        url:`/lswms/uniquecode/${id}`,
        method:'get'
    })
}

export function getUniquecodePage(data){
    return request({
        url:'/lswms/uniquecode/page',
        method:'get',
        params:data
    })
}

export function getUniquecodeByTray(data){
    return request({
        url:'/lswms/uniquecode/getByTray',
        method:'get',
        params:data
    })
}

export function putUniquecode(data){
    return request({
        url:'/lswms/uniquecode',
        method:'put',
        data:data
    })
}
export function postUniquecode(data){
    return request({
        url:'/lswms/uniquecode',
        method:'post',
        data:data
    })
}

export function deleteUniquecode(data){
    return request({
        url:`/lswms/uniquecode`,
        method:'delete',
        data:data
    })
}
export function exportUniquecode(data){
    return request({
        url:`/lswms/uniquecode/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
